﻿using CuteRibs.MVVMLib;
using CuteRibs.WowArmory.Resources;

namespace CuteRibs.WowArmory.ViewModels
{
	public class AppTitleControlViewModel : ViewModelBase
	{
		private string title;
		private string region;

		public string Title
		{
			get { return this.title; }
			set
			{
				if (this.title != value)
				{
					this.title = value;
					this.NotifyPropertyChanged("Title");
				}
			}
		}

		public string Region
		{
			get { return this.region; }
			set
			{
				if (this.region != value)
				{
					this.region = value;
					this.NotifyPropertyChanged("Region");
				}
			}
		}

		public AppTitleControlViewModel()
			: this(AppRes.AppName, null)
		{

		}

		public AppTitleControlViewModel(string region)
			: this(AppRes.AppName, region)
		{

		}

		public AppTitleControlViewModel(string title, string region)
		{
			this.Title = title;
			this.Region = region;
		}
	}
}
